package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 企业用户表
 * </p>
 *
 * @author 吕正睿
 * @since 2018-10-28
 */
@TableName("com_pt_user")
public class ComPtUser extends Model<ComPtUser> {

	private static final long serialVersionUID = 1L;

	private Long id;
	/**
	 * 账户
	 */
	@TableField("user_name")
	private String userName;
	/**
	 * 企业名
	 */
	@TableField("pt_name")
	private String ptname;
	/**
	 * 密码
	 */
	@TableField("pass_word")
	private String passWord;
	/*
	*
	新密码
	*
	 */
	@TableField(exist = false)
	private String newpassword1;
	/**
	 * 父级企业ID
	 */
	@TableField("pant_id")
	private String pantId;


	public String getPantId() {
		return pantId;
	}

	public void setPantId(String pantId) {
		this.pantId = pantId;
	}

	public String getNewpassword1() {
		return newpassword1;
	}

	public void setNewpassword1(String newpassword1) {
		this.newpassword1 = newpassword1;
	}

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Long createTime;
	/**
	 * 真实姓名
	 */
	@TableField("true_name")
	private String trueName;
	/**
	 * 该企业余额
	 */
	private BigDecimal moeny;
	/**
	 * 是否审核通过 1 通过 2 未通过
	 */
	private String flag;
	/**
	 * 联系人姓名
	 */
	@TableField("call_name")
	private String callName;
	/**
	 * 联系人手机号
	 */
	@TableField("call_phone")
	private String callPhone;
	/**
	 * 法律人信息
	 */
	@TableField("relaction_user_info")
	private String relactionUserInfo;
	/**
	 * 未通过原因
	 */
	@TableField("false_info")
	private String falseInfo;
	/**
	 * 地址
	 */
	@TableField(exist = false)
	private String url;

	/**
	 * 总计充值钱数
	 */
	@TableField(exist = false)
	private String sumMoeny;
	/**
	 * 企业下某用户的手机号
	 */
	@TableField(exist = false)
	private String userPhone;
	/**
	 *  总计充电量
	 */
	@TableField(exist = false)
	private String sumPower;
	/**
	 *   企业下某用户名字
	 */
	@TableField(exist = false)
	private String name;
	//该注解表示表中不存在该字段 调用新增时 不会自动映射新增该字段
	@TableField(exist = false)
	private  PtRole  ptRole;
	@TableField(exist = false)
	private  String  roleName;

	public PtRole getPtRole() {
		return ptRole;
	}

	public void setPtRole(PtRole ptRole) {
		this.ptRole = ptRole;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getSumMoeny() {
		return sumMoeny;
	}

	public void setSumMoeny(String sumMoeny) {
		this.sumMoeny = sumMoeny;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getSumPower() {
		return sumPower;
	}

	public void setSumPower(String sumPower) {
		this.sumPower = sumPower;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPtname() {
		return ptname;
	}

	public void setPtname(String ptname) {
		this.ptname = ptname;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public BigDecimal getMoeny() {
		return moeny;
	}

	public void setMoeny(BigDecimal moeny) {
		this.moeny = moeny;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag= flag;
	}

	public String getCallName() {
		return callName;
	}

	public void setCallName(String callName) {
		this.callName = callName;
	}

	public String getCallPhone() {
		return callPhone;
	}

	public void setCallPhone(String callPhone) {
		this.callPhone = callPhone;
	}

	public String getRelactionUserInfo() {
		return relactionUserInfo;
	}

	public void setRelactionUserInfo(String relactionUserInfo) {
		this.relactionUserInfo = relactionUserInfo;
	}

	public String getFalseInfo() {
		return falseInfo;
	}

	public void setFalseInfo(String falseInfo) {
		this.falseInfo = falseInfo;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComPtUser{" +
				"id=" + id +
				", userName='" + userName + '\'' +
				", ptname='" + ptname + '\'' +
				", passWord='" + passWord + '\'' +
				", newpassword1='" + newpassword1 + '\'' +
				", pantId='" + pantId + '\'' +
				", createTime=" + createTime +
				", trueName='" + trueName + '\'' +
				", moeny=" + moeny +
				", flag='" + flag + '\'' +
				", callName='" + callName + '\'' +
				", callPhone='" + callPhone + '\'' +
				", relactionUserInfo='" + relactionUserInfo + '\'' +
				", falseInfo='" + falseInfo + '\'' +
				", url='" + url + '\'' +
				", sumMoeny='" + sumMoeny + '\'' +
				", userPhone='" + userPhone + '\'' +
				", sumPower='" + sumPower + '\'' +
				", name='" + name + '\'' +
				", ptRole=" + ptRole +
				", roleName='" + roleName + '\'' +
				'}';
	}
}
